package org.mtmi.ui.controls;

import org.eclipse.swt.graphics.Image;
import org.mtmi.ui.drawables.IDrawable;

/**
 * provide, images and text for presentations in controls.
 */
public interface ILabelProvider 
{
	/**
	 * @param element element to retrieve image
	 * @return a drawable used to display image or ..., return null for no image.
	 */
	public IDrawable getImage( Object element );
	
	/**
	 * @param element element to retrieve text
	 * @return a user friendly text for the given element (or null)
	 */
	public String getText( Object element );
}
